package com.robert.sample.client;

import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

import com.robert.vesta.service.bean.Id;
import com.robert.vesta.service.intf.IdService;

public class ClientSample {
	public static void main(String[] args) {
		ApplicationContext ac = new ClassPathXmlApplicationContext(
				"spring/vesta-client-sample.xml");
		IdService idService = (IdService) ac.getBean("idService");

		long id = idService.genId();
		Id ido = idService.expId(id);

		System.out.println(id + ":" + ido);
	}
}
